package cn.znzz.cjm.constants;

public enum GlobalStatusExceptionCode {
    //不可为空的错误码
    CODE_400_PARAM_VALID(400001,"参数校验错误！"),
    CODE_500_SYSTEM_ERROR(500001,"内部错误，请联系管理员！"),
    CODE_400002_PWD_EQUAL(400002,"两次密码不一致！");

    private int code;
    private String message;

    GlobalStatusExceptionCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public String toString() {
        return "ErrorCode{" +
                "code=" + code +
                ", message='" + message + '\'' +
                '}';
    }
}
